FROM openjdk:17
ENV TZ Asia/Shanghai
WORKDIR /data
ADD ./target/lishuoboy-docker1.jar ./app.jar
# CMD 和 ENTRYPOINT 区别 : docker run --entrypoint 覆盖 ENTRYPOINT 指令
ENTRYPOINT ["java","-jar","./app.jar"]